const addZero = num => num > 9 ? num : '0' + num


export default function(timestamp) {
  if(timestamp <= 0) {
    return 0
  }
  // 120,000 ,000
  const hour = ~~(timestamp / 1000 / 3600)
  const minute = ~~(timestamp / 1000 % 3600 / 60)
  const second = ~~(timestamp / 1000 % 60)
  // 时 分 秒
  return [addZero(hour), addZero(minute), addZero(second) ]
}